package com.vichat.api.service;

import com.vichat.api.entity.*;

import java.util.List;

/**
 * Created by wangluyin on 2017/12/18.
 */
public interface IApiService {

    public void saveRequestBusiRecord(RequestBusiRecord requestBusiRecord) throws Exception;

    public void saveResponseBusiRecord(ResponseBusiRecord requestBusiRecord) throws Exception;
    public void backRequestBusiRecord(RequestBusiRecord source) throws Exception;
    public void updateResponseBusiRecord(ResponseBusiRecord responseBusiRecord) throws Exception;
    public void backResponseBusiRecord(ResponseBusiRecord source) throws Exception;
    public List<RequestBusiRecord> fetchTodoRequest(int rows) throws Exception;

    public void saveApiBusiRecord(ApiBusiRecord apiBusiRecord) throws Exception;


    public List<ResponseBusiRecord> fetchTodoResponse(int rows) throws Exception;
    public VichatJson getVichatJson(long jsonId)throws Exception;
    public ResponseBusiRecord queryResponse(String transactionId) throws Exception;
    public HResponseBusiRecord queryHResponse(String transactionId) throws Exception;
}
